package com.ddz.implementation;

import android.media.SoundPool;

public class Sound {
	int mSoundId;
    SoundPool mSoundPool;

    public Sound(SoundPool _soundPool, int _soundId) {
        mSoundId = _soundId;
        mSoundPool = _soundPool;
    }

    public void play(float volume) {
        mSoundPool.play(mSoundId, volume, volume, 0, 0, 1);
    }

    public void dispose() {
        mSoundPool.unload(mSoundId);
    }
}
